package com.icode.service.user;

import com.icode.core.dto.house.RentDTO;
import com.icode.core.dto.manager.ContactsDTO;
import com.icode.core.dto.manager.MessageModelDTO;
import com.icode.core.dto.order.OrderDTO;
import com.icode.core.model.manage.ModelTemplate;
import com.icode.core.model.manage.Reserve;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-6-4
 * Time: 下午3:18
 * To change this template use File | Settings | File Templates.
 */
public interface MessageService {

    String sendValidateNum(String phoneNum);

    void removePhoneNum(String phoneNum);

    String sendToCustomer(String phoneNum, String custProduct, String custPaid, String custSurplus, String custAddress);

    String sendToService(String phoneNum, String serviceCustomerName, String gender, String serviceProduct, String servicePaid, String serviceCustomerTel);

    void saveOrUpdateContacts(ContactsDTO contactsDTO);

    ContactsDTO findContactsByGuid(String contactsGuid);

    List<ContactsDTO> findContacts(String currentPage);

    void delContactsByGuid(String contactsGuid);

    void delmoreContacts(String contactsGuids);

    boolean sendModel(String guids, String modelGuid,String modelValue, String address, String signTime, String signAddress, String signContact, String signPhone);

    List<MessageModelDTO> findMessageModelByName(ModelTemplate template);

    List<MessageModelDTO> findAllMessageModel();

    boolean messageModelSaveOrUpdate(MessageModelDTO messageModelDTO);

    boolean messageModelDelete(String modelGuid);

    MessageModelDTO findMessageModelByGuid(String modelGuid);

    void sendPayment(OrderDTO orderDTO);

    void sendReserveSuccess(Reserve reserve);

    void sendRentSuccess(RentDTO rentDTO);
}
